package com.xinxing.learning.datasource.service;

import com.xinxing.learning.datasource.mapper.DatasourceMapper;
import com.xinxing.learning.datasource.model.DynamicDataSourceModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DynamicDataSourceService {

    @Autowired
    private DatasourceMapper datasourceMapper;

    public List<DynamicDataSourceModel> listAll() {
        return datasourceMapper.selectList(null);
    }
}
